package com.xwb.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xwb.domain.Tutor;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
//tutor实体类：
//private String competitionId;   // 比赛号码
//private String teamNumber;      // 队伍号
//private String tutorName;       // 导师名
//private String tutorCollege;    // 导师所属学院
//private String tutorPhoneNumber; // 导师电话号码

@Mapper
public interface TutorDao extends BaseMapper<Tutor> {

    @Insert("INSERT INTO tutor " +
            "values(#{competitionId},#{teamNumber},#{tutorName}," +
            "#{tutorCollege},#{tutorPhoneNumber})")
    public void saveTutorInfo(Tutor tutor);


//    @Insert("insert into member " +
//            "values(#{competitionId},#{teamNumber},#{memberPosition},#{userId}," +
//            "#{memberPhoneNumber},#{memberCollege},#{memberClass},#{memberName}) ")
}
